/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-09-21
 * Time: 9:00
 */
class T{
     void fun(){
        System.out.println("sdsd");
    }
}
public class anonymity {
    public static void main(String[] args) {
        int a = 10;
        new T(){
            @Override
            void fun() {
                //a=99;
                int c = 10;
                c =99;
                System.out.println(c+"这里重写了父类的fun"+a);
            }
        }.fun();
    }
}
